package gui;

import java.io.File;
import java.util.List;

import last.fm.LastFmTrackAddon;
import last.fm.MergeLastFmTracks;
import library.Library;
import library.PlayList;
import localFiles.LocalArtistAddon;
import localFiles.LocalTrackAddon;
import localFiles.WriteLovedList;
import baseStructure.Addon;
import baseStructure.Artist;
import baseStructure.ExtendedSearch;
import baseStructure.SearchArtist;
import baseStructure.SearchTrack;
import baseStructure.SortedList;
import baseStructure.Track;

public class Testing {
	static void test1() {
		//LastFmTrackAddon.getUserTopTracks("ragnvaldf", new String[] { "limit=2500" }, MergeLastFmTracks.getInstance());
		LastFmTrackAddon.getUserLovedTracks("ragnvaldf", new String[] { "limit=2500" }, MergeLastFmTracks.getInstance());
	}
	
	static void test2() {
		SortedList<Track> list = new SortedList<>();
		Library.getInstance().getTracks(list, new SearchTrack());
		PlayList tracklist = Library.getInstance().playlists.get("default");
		if (tracklist == null) return;
		for (Track track : list) {
			tracklist.append(track);
		}
	}
	
	static void test3() {
		WriteLovedList.CreateLovedPlayListInArtistFolder();
	}
	
	static void test4() {
		LastFmTrackAddon.getUserTopTracks("ragnvaldf", new String[] { "limit=2500" }, MergeLastFmTracks.getInstance());
		LastFmTrackAddon.getUserLovedTracks("ragnvaldf", new String[] { "limit=2500" }, MergeLastFmTracks.getInstance());
	}
	
	static void test5() {
	}
}
